#!/usr/bin/env node

import { startApiServer } from '@/lib/mcp-api-server';

// Get port from environment or use default (3002 to avoid conflict with other MCP servers)
const port = process.env.MCP_API_PORT ? parseInt(process.env.MCP_API_PORT) : 3002;

// Start the MCP API wrapper server
startApiServer(port).catch((error) => {
  console.error('Failed to start MCP API server:', error);
  process.exit(1);
});